package cn.jingyuan.swan.system.web.restful;

import cn.jingyuan.swan.cloud.core.Result;
import cn.jingyuan.swan.system.model.dto.AuthorityResourceDto;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;

/**
 * 权限服务
 */
public interface AuthorityRestful {

    /**
     * 获取全部访问权限列表
     *
     * @return 权限列表
     */
    @GetMapping(path = "/authority/access", produces = APPLICATION_JSON_VALUE)
    Result<List<AuthorityResourceDto>> findAuthorityResource();

}
